package com.dream.service.impl;

import com.dream.model.dto.UserBody;
import com.dream.service.IUserService;
import org.springframework.stereotype.Service;

/**
 * @description: 用户接口实现类
 * @author: LiMG
 * @create: 2025-05-09 10:55:28
 **/
@Service
public class UserServiceImpl implements IUserService {
    @Override
    public void register(UserBody userBody) {
        String username = userBody.getUsername();
        String password = userBody.getPassword();
        String email = userBody.getEmail();
        System.out.println("注册用户名：" + username + "，密码：" + password + "，邮箱：" + email);
    }

    @Override
    public UserBody getUserInfo() {
        UserBody user = new UserBody();
        user.setUsername("张三");
        user.setPassword("zhangsan123");
        user.setEmail("zhangsan@qq.com");
        return user;
    }
}
